package com.opensource.lzx.restartclient.controller;

import com.alibaba.fastjson.JSON;
import com.opensource.lzx.restartclient.service.IRegisterService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 739891618@qq.com
 * @Date: 2022-11-13 12:49:38
 * @ClassName: RegisterController
 * @Describe: this is a ...
 */
@Slf4j
@RestController
@RequestMapping("service")
public class RegisterController {

    @Autowired
    private IRegisterService registerService;

    @GetMapping("register")
    public String registerService() {
        log.info("Send register request");
        return JSON.toJSONString(registerService.register());
    }
}
